package socket.test2SsBase;

import java.io.*;
import java.net.Socket;
import java.util.Date;

public class Test1ClientSocket2 {
    public static void main(String[] args) {
        try {
            Socket socket=new Socket("localhost",8800);
            OutputStream out = socket.getOutputStream();
            out.write("abcdefg\r\n".getBytes());
            out.flush();
            Thread.sleep(5000);
            out.write("cccccccdddd".getBytes());
            out.flush();
            socket.close();

        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
